package com.demo;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 测试链接：http://localhost:8763/service/info
 * swagger: http://localhost:8763/swagger-ui/index.html
 * graylog: http://127.0.0.1:9000
 *
 * spring-boot-starter-data-elasticsearch 4.0.6.RELEASE版本需要使用注解 @EnableElasticsearchRepositories
 *
 * 注解EnableFeignClients从第三方jar加载FeignClient和本地FeignClient
 * @author K
 */
@Slf4j
@EnableElasticsearchRepositories
@EnableAsync
@EnableCaching
@ServletComponentScan
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients({"com.demo.miya.controller.client"})
@MapperScan("com.demo.dao.mapper")
public class ServiceLunaApplication {

	public static void main(String[] args) {
		log.debug("service-luna startup............................................");
		SpringApplication.run(ServiceLunaApplication.class, args);
	}

}
